package com.ctgu.j08.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ctgu.j08.vo.BuyList;
import com.ctgu.j08.vo.Department;
import com.ctgu.j08.vo.Device;
import com.ctgu.j08.vo.Result;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version 1.0
 * @author: Saiya Wang
 * @date: 2021/6/2 9:19
 */
@Service
public interface BuyListService extends IService<BuyList> {
    /**
     * 通过id获取设备
     * @param buyId
     * @return
     */
    public BuyList getById(int buyId);

    /**
     * 通过设备名称获取采购信息
     * @param deName
     * @return
     */
    public List<BuyList> getByDeName(String deName);


//    public Result editBuyList(BuyList buyList);
    public Result editBuyList(Integer buyId);

    /**
     * 添加采购信息
     * @param buyList
     * @return
     */
    public Result addBuyList(BuyList buyList);

//    /**
//     * 通过id删除设备
//     * @param deId
//     * @return
//     */
//    public Result delDevice(Integer deId);

    /**
     *
     * @return
     */
    public Result getAllBuyList();

    /**
     * 设备名查找采购信息
     * @param deName
     * @return
     */
    public Result searchBuyListByName(String deName);
}
